package com.itheima.mapper.testSoul;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.domain.testSoul.Options;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface OptionsMapper extends BaseMapper<Options> {
    @Select("select sum(score) from tb_options where id in (#{optionIds})")
    Integer findSumScoreByIds(List<Long> optionIds);
}
